import { Avatar, Button, Dropdown, FormModel, Icon, Input, Layout, Menu, message, Modal, Popconfirm, Select, Switch, Table, Tabs, TreeSelect, Upload, Space, PageHeader, Pagination, ConfigProvider, Radio, InputNumber, Spin, DatePicker, Rate, Breadcrumb, Drawer } from 'ant-design-vue'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import common from 'api/common'
import moment from 'moment'

Vue.component(Button.name,Button)
Vue.use(Layout)
Vue.use(Menu)
Vue.use(Icon)
Vue.use(Dropdown)
Vue.use(Table)
Vue.use(Switch)
Vue.use(Modal)
Vue.use(FormModel)
Vue.use(Input)
Vue.use(Tabs)
Vue.use(Avatar)
Vue.use(Popconfirm)
Vue.use(Upload)
Vue.use(Select)
Vue.use(TreeSelect)
Vue.use(Space)
Vue.use(PageHeader)
Vue.use(Pagination)
Vue.use(ConfigProvider)
Vue.use(Radio)
Vue.use(InputNumber)
Vue.use(Spin)
Vue.use(DatePicker)
Vue.use(Rate)
Vue.use(Layout)
Vue.use(Breadcrumb)
Vue.use(Drawer)

Vue.config.productionTip = false
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$moment = moment

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
